import { lazy } from "react";
import { RouteItem } from "./type";

const Home = lazy(() => import("../pages/Home/index"));
const ThreeDPage = lazy(() => import("../components/3DPage/index"));
const Login = lazy(() => import("../pages/Login/index"));

export const router: RouteItem[] = [
  {
    path: "/",
    element: <Login />,
  },
  {
    path: "/3d",
    element: <ThreeDPage />,
  },
  {
    path: "/home",
    element: <Home />,
  },
];
